/**

This file is part of MaCI/GIMnet.

MaCI/GIMnet is free software: you can redistribute it and/or modify it 
under the terms of the GNU Lesser General Public License as published 
by the Free Software Foundation, either version 3 of the License, or 
(at your option) any later version.

MaCI/GIMnet is distributed in the hope that it will be useful, but WITHOUT 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public 
License for more details.

You should have received a copy of the GNU Lesser General Public 
License along with GIMnet. (See COPYING.LESSER) If not, see 
<http://www.gnu.org/licenses/>.

**/
/**
 * $Id: configreader.hpp,v 1.3 2009-05-13 07:18:19 amaula Exp $
 * \file
 * \brief Header file of Configuration file reader for MaCI launcher.
 * \author Antti Maula <antti.maula@tkk.fi>
 */
#ifndef _MACI_LAUNCHER_CONFIGREADER_HPP_
#define _MACI_LAUNCHER_CONFIGREADER_HPP_

#include "launchertypes.hpp"
#include <string>

class CConfigReader
{
public:
  /** Parse given file to SMachineConfEntry structure.
   *
   * @param[out] aEntry          Reference to structure to fill.
   * @param[in] aFilename        Inputfile to parse.
   */
  static bool ReadConfig(SMachineConfEntry &aEntry, const std::string &aFilename);


  /** Parse given file to SModuleConfEntry structure.
   *
   * @param[out] aEntry          Reference to structure to fill.
   * @param[in] aFilename        Inputfile to parse.
   */
  static bool ReadConfig(SModuleConfEntry &aEntry, const std::string &aFilename);
};

#endif
